package com.wangzhiwen.pilipili.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wangzhiwen.pilipili.utils.PageUtils;
import com.wangzhiwen.pilipili.entity.CommentEntity;
import com.wangzhiwen.pilipili.vo.CommentVo;
import com.wangzhiwen.pilipili.vo.CommentWithUserVo;

import jakarta.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;


public interface CommentService extends IService<CommentEntity> {

    PageUtils queryPage(Map<String, Object> params, HttpServletRequest request);

    /**
     * 保存评论
     * */
    CommentEntity saveComment(CommentVo commentVo, HttpServletRequest request);


    PageUtils commentList(Map<String, Object> params, long articleId, long fatherId, int type, Integer sort);

    void addCount(String col, long commentId, long count);
}

